package com.louis.buddhist.ui.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.louis.buddhist.R;
import com.louis.buddhist.data.entity.CatalogEntity;

import java.util.List;

/**
 * Created by fenglei on 2018/4/12.
 */

public class CatalogDialogAdapter extends BaseQuickAdapter<CatalogEntity.EbookContentBean, BaseViewHolder> {

    public CatalogDialogAdapter(int layoutResId, @Nullable List<CatalogEntity.EbookContentBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, CatalogEntity.EbookContentBean item) {
        helper.setText(R.id.tv_name, item.getTitle()).setText(R.id.tv_page, item.getPage_no() + "");
    }
}
